﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WucCloud.Entity
{
    /// <summary>
    /// 用户角色关联实体
    /// </summary>
    [Serializable]
    [SugarTable("Sys_UserRole", "用户角色关联表")]
    [Tenant("0")]
    public class UserRoleEntity:BaseEntity<string>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public UserRoleEntity()
        {

        }
        /// <summary>
        /// 用户主键Id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnName = "UserId", ColumnDataType = "nvarchar(50)", ColumnDescription = "用户主键Id")]
        public string UserId { get; set; }

        /// <summary>
        /// 角色主键Id
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnName = "RoleId", ColumnDataType = "nvarchar(50)", ColumnDescription = "角色主键Id")]
        public string RoleId { get; set; }
    }
}
